package exttable.dbclasses;

import javax.swing.*;

/**
 * Created by IntelliJ IDEA.
 * User: alex
 * Date: 30.10.2010
 * Time: 19:42:48
 * To change this template use File | Settings | File Templates.
 */
public class Answer {
    private int answerId;
    private int questionId;
    private int points;
    private JLabel answerLabel;

    public int getAnswerId() {
        return answerId;
    }

    public void setAnswerId(int answerId) {
        this.answerId = answerId;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    public JLabel getAnswerLabel() {
        return answerLabel;
    }

    public void setAnswerLabel(JLabel answerLabel) {
        this.answerLabel = answerLabel;
    }

    public int getQuestionId() {
        return questionId;
    }

    public void setQuestionId(int questionId) {
        this.questionId = questionId;
    }

    @Override
    public String toString() {
        return answerLabel.getText();
    }
}
